﻿/*************************************************************************************
 *
 * 文 件 名:   ClientProperty
 * 描    述: 
 * 
 * 版    本：  V1.0
 * 创 建 者：  Naflim 
 * 创建时间：  2023/4/28 15:31:36
 * ======================================================
 * 历史更新记录
 * 版本： V          修改时间：         修改人：
 * 修改内容：
 * ======================================================
*************************************************************************************/

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AccessDoorPolice.CommonResource
{
    public  class ClientProperty : INotifyPropertyChanged
    { 
        private DateTime _now = DateTime.Now;
        public event PropertyChangedEventHandler PropertyChanged;

        public DateTime Now
        {
            get { return _now; }
            set
            {
                _now = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(Now)));
            }
        }
    }



    public  class CommResource : INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;
        private ClientProperty _clientProperty = new ClientProperty();

        /// <summary>
        /// 静态公共资源
        /// </summary>
        public static CommResource StaticCommonResource { get; set; } = new CommResource();

        public ClientProperty ClientProperty
        {
            get { return _clientProperty; }
            set
            {
                _clientProperty = value;
                PropertyChanged?.Invoke(this, new PropertyChangedEventArgs(nameof(ClientProperty)));
            }
        }
    }


}
